function submitOrder() {
	var province = $("input[name='province']").val();
	var city = $("input[name='city']").val();
	var detailAddress = $("input[name='detailAddress']").val();
	var receiver = $("input[name='receiver']").val();
	var receiverPhone = $("input[name='receiverPhone']").val();
	var totalSum = $("#totalSum").html();
//	alert(totalSum);
	$.ajax({
		url:"/Shopping/shoppingCart/submitOrder",
		dataType:"json",
		type:"post",
		//获取表单中的值
		data:{
			"province" : province,
			"city" : city,
			"detailAddress" : detailAddress,
			"receiver" : receiver,
			"receiverPhone" : receiverPhone,
			"totalSum" : totalSum
		},
		success:function(data) {
			if (data.caozuo) {
				window.location.href = "/Shopping/orders";
			} else {
				//alert(data.message);
				//让panel淡入
				$(".panel-default").fadeIn(500);
				$(".Canvas").text(data.message);
				//让panel淡出并停留0.5秒的时间
				setTimeout(function() {$(".panel-default").fadeOut(500);}, 2000)
				
			}
//			alert("垃圾宏");
		},
		//否则访问这里
		error : function(data) {
			alert("数据访问失败。");
		}
	});
}